package games.tankwars.entities;

public class MazeElement extends vooga.entities.Rect
{
	private int myHealth;
	
	public MazeElement(java.awt.geom.Point2D center, java.awt.geom.Dimension2D size, boolean destructible)
	{
		super(center, size);
		setDestructible(destructible);
	}
	
	public void setHealth(int health)
	{
		myHealth = health;
	}
	
	public int getHealth()
	{
		return myHealth;
	}
	
	public void reduceHealth()
	{
		if(isDestructible())
		{
			myHealth--;
		}
	}
	
}
